package com.coolgor.axnut.enums.mdmis;

public enum PolicyMonitorEnum {
	NORMAL(0, "正常状态"), 
	WARN_REPEAT(1001, "重复警告"), 
	HALT_SEND(2001, "中断寄出"), 
	HALT_RECEIPT(2002, "中断回销"), 
	HALT_RETURN(2003, "中断回退");

	private int state;

	private String stateInfo;

	private PolicyMonitorEnum(int state, String stateInfo) {
		this.state = state;
		this.stateInfo = stateInfo;
	}

	public int getState() {
		return state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public static PolicyMonitorEnum stateOf(int index) {
		for (PolicyMonitorEnum state : values()) {
			if (state.getState() == index) {
				return state;
			}
		}
		return null;
	}
}
